/*****************************************************************************************************************
 *  @author     :   Dungnv 
 *  @date       :   19/05/2008 
 *  @purpose    :   Tao lop SearchCode : Thong tin tra cuu load o day 
 * ***************************************************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace HREDU
{
    class CSearch
    {
        #region Variable Declarations
		private int intPosition = 0;
		private string strFieldcode = null;
		private string strFieldname = null;
		private string strFieldtype = null;
        private string strSearchcode = null;
		private decimal decFieldsize = 0;
		private string strMask = null;
		private string strFormat = null;
		private string strOperator = null;
		private string strDisplay = null;
		private string strSrch = null;
		private string strKey = null;
		private decimal decWidth = 0;
		#endregion
		
		#region Constructors
		public CSearch(){}
		public CSearch
		(
				int intPosition, 
				string strFieldcode, 
				string strFieldname, 
				string strFieldtype,
                string strSearchcode, 
				decimal decFieldsize, 
				string strMask, 
				string strFormat, 
				string strOperator, 
				string strDisplay, 
				string strSrch, 
				string strKey, 
				decimal decWidth 
				)
		{
		this.intPosition = intPosition;
		this.strFieldcode = strFieldcode;
		this.strFieldname = strFieldname;
		this.strFieldtype = strFieldtype;
		this.strSearchcode = strSearchcode;
		this.decFieldsize = decFieldsize;
		this.strMask = strMask;
		this.strFormat = strFormat;
		this.strOperator = strOperator;
		this.strDisplay = strDisplay;
		this.strSrch = strSrch;
		this.strKey = strKey;
		this.decWidth = decWidth;
		}
		#endregion
		
		#region properties
		public int Position
		{
			get
			{
				return intPosition;		
			}
			set
			{
				intPosition = value;
			}
		}
		public string Fieldcode
		{
			get
			{
				return strFieldcode;		
			}
			set
			{
				strFieldcode = value;
			}
		}
		public string Fieldname
		{
			get
			{
				return strFieldname;		
			}
			set
			{
				strFieldname = value;
			}
		}
		public string Fieldtype
		{
			get
			{
				return strFieldtype;		
			}
			set
			{
				strFieldtype = value;
			}
		}
		public string Searchcode
		{
			get
			{
				return  strSearchcode;		
			}
			set
			{
                strSearchcode = value;
			}
		}
		public decimal Fieldsize
		{
			get
			{
				return decFieldsize;		
			}
			set
			{
				decFieldsize = value;
			}
		}
		public string Mask
		{
			get
			{
				return strMask;		
			}
			set
			{
				strMask = value;
			}
		}
		public string Format
		{
			get
			{
				return strFormat;		
			}
			set
			{
				strFormat = value;
			}
		}
		public string Operator
		{
			get
			{
				return strOperator;		
			}
			set
			{
				strOperator = value;
			}
		}
		public string Display
		{
			get
			{
				return strDisplay;		
			}
			set
			{
				strDisplay = value;
			}
		}
		public string Srch
		{
			get
			{
				return strSrch;		
			}
			set
			{
				strSrch = value;
			}
		}
		public string Key
		{
			get
			{
				return strKey;		
			}
			set
			{
				strKey = value;
			}
		}
		public decimal Width
		{
			get
			{
				return decWidth;		
			}
			set
			{
				decWidth = value;
			}
		}
			
		#endregion	
		
	}
	
  }
